//
declare global {
  //设置全局属性
  interface Window {
    //window对象属性
    sq: Object; //加入对象
  }
}
var sq = {
  log: function (s: any, css?: string) {
    css = css == undefined ? "color:#fff7d3;background-color:#ff4f49;font-size:12px;padding:10px;" : css;
    console.log("%c%s", css, s);
  },
  green: function (s: any, css?: string) {
    css = css == undefined ? "color:#fff7d3;background-color:#33a600;font-size:12px;padding:10px;" : css;
    console.log("%c%s", css, s);
  },
  blue: function (s: any, css?: string) {
    css = css == undefined ? "color:#fff7d3;background-color:#00768f;font-size:12px;padding:10px;" : css;
    console.log("%c%s", css, s);
  },
  violet: function (s: any, css?: string) {
    css = css == undefined ? "color:#fff7d3;background-color:#79008f;font-size:12px;padding:10px;" : css;
    console.log("%c%s", css, s);
  }
};
window.sq = sq;
